check shell command success

209

check shell command success -

some_command
if [ $? -eq 0 ]; then
    echo OK
else
    echo FAIL
fi

Comments

Submit
0 Comments